window: Only check for the event widget if clicked on the "content" region
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 2 Jun 2014 16:04:36 +0000 (18:04 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 2 Jun 2014 16:38:25 +0000 (18:38 +0200)
commit3c0ebf65cf89140825a3f8c4c4e65170f8df4e8a
tree66d5343ccdaf5bbc07264acf8352385d8c549d57
parent00656ed10bc108734a6bf677bb897d3de98bf891
window: Only check for the event widget if clicked on the "content" region

Every button press/release event reaching the the multipress gesture in GtkWindow
and happening in the "title" region must be handled, regardless of the event widget.
Children there wanting the event(s) for themselves are (and were always) expected
to stop event propagation.

So the only place to check for the event widget's "window-dragging" style property
is the "content" region, which matches the pre-gestures behavior.

This fixes some issues with sequences being mistakenly claimed (and events not
propagated further) on situations it shouldn't.
gtk/gtkwindow.c